package classes;

import javax.faces.bean.ManagedBean;


@ManagedBean
public class Bean {
	private String username;
	private String password;
	
	private BankCustomer customer = new BankCustomer();
	
	public String getUsername() {
		return customer.getUsername();
	}
	
	public void setUsername(String username) {
		customer.setUsername(username);
	}
	
	public String getPassword() {
		return customer.getPassword();
	}
	
	public void setPassword(String password) {
		customer.setPassword(password);
	}
	
	public String showCustomerInfo() {
		return("info");
	}
	
	public void setCustomer() {
		customer.setPassword(password);
		customer.setUsername(username);
	}
	
    public BankCustomer getCustomer() {
	    return(customer);
	}
}
